package 数据类型;
/*
* 对数据类型的深度了解
* */
public class TransferTest3 {
    public static void main(String[] args) {
        TransferTest3 test=new TransferTest3();//实例化对象test
        test.first();//调用first方法
    }
    public void first(){
        int i = 5;
        Value v=new Value();//实例化对象v
        v.i = 25;//给value中i赋值25
        second(v, i);//输入Value中实例化对象v,
        System.out.println("fist"+v.i);
    }
    public void second(Value v,int i){
        i = 0;
        v.i = 20;
        Value val =new Value();
        v = val;
        System.out.println(v.i+"second"+i);
    }
}
class Value{
    int i = 15;
}
